#include <stdio.h>

#define N

int m[N+1][N+1],s[N+1][N+1];

int MemorizeMatrixChain(int n,int **m,int **s)
{
    for(int i = 0;i <= n;++i)
    {
        for(int j = 0;j <= n;++j)
            m[i][j] = 0;
    }
    return LookupChain(1,n);
}

int LookupChain(int i,int j)
{
    if(m[i][j] > 0) return m[i][j];
    
}

int mai()
{
    return 0;
}